import type { AccessUser, AccessReturn } from '@/types/services'

export default (user: AccessUser): AccessReturn => {
  // 每个键值对代表一个权限
  return {
    // canReadFoo: true
    // canUpdateFoo: role === 'admin',
    // canDeleteFoo: (foo) => {
    //   return foo.ownerId === userId
    // }
  }
}
